<template>
  <div>
      <span>{{name}}</span>
      <button @click="btn(ind)">+</button>
      <span>{{count}}</span>
      <button @click="add(ind)">-</button>
  </div>
</template>

<script>
export default {
props:['name','ind','count'],
methods: {
    btn(ind){
        this.$emit('btns',ind)
    },add(ind){
        this.$emit('adds',ind)
    }
}
}
</script>

<style>

</style>